PROCEDURE GetMediaHandlerDescription(theMedia: Media; VAR mediaType: OSType; VAR creatorName: Str255; VAR creatorManufacturer: OSType);
{$IFC NOT GENERATINGCFM}
INLINE $706F, $AAAA;
{$ENDC}
FUNCTION GetMediaUserData(theMedia: Media): UserData;
{$IFC NOT GENERATINGCFM}
INLINE $7070, $AAAA;
{$ENDC}
FUNCTION GetMediaInputMap(theMedia: Media; VAR inputMap: QTAtomContainer): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $303C, $0249, $AAAA;
{$ENDC}
FUNCTION SetMediaInputMap(theMedia: Media; inputMap: QTAtomContainer): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $303C, $024A, $AAAA;
{$ENDC}
{
************************
* Media Handler routines
*************************
}
FUNCTION GetMediaHandler(theMedia: Media): MediaHandler;
{$IFC NOT GENERATINGCFM}
INLINE $7071, $AAAA;
{$ENDC}
FUNCTION SetMediaHandler(theMedia: Media; mH: MediaHandlerComponent): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $303C, $0190, $AAAA;
{$ENDC}
{
************************
* Media's Data routines
*************************
}
FUNCTION BeginMediaEdits(theMedia: Media): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $7072, $AAAA;
{$ENDC}
FUNCTION EndMediaEdits(theMedia: Media): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $7073, $AAAA;
{$ENDC}
FUNCTION SetMediaDefaultDataRefIndex(theMedia: Media; index: INTEGER): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $303C, $01E0, $AAAA;
{$ENDC}
PROCEDURE GetMediaDataHandlerDescription(theMedia: Media; index: INTEGER; VAR dhType: OSType; VAR creatorName: Str255; VAR creatorManufacturer: OSType);
{$IFC NOT GENERATINGCFM}
INLINE $303C, $019E, $AAAA;
{$ENDC}
FUNCTION GetMediaDataHandler(theMedia: Media; index: INTEGER): DataHandler;
{$IFC NOT GENERATINGCFM}
INLINE $303C, $019F, $AAAA;
{$ENDC}
FUNCTION SetMediaDataHandler(theMedia: Media; index: INTEGER; dataHandler: DataHandlerComponent): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $303C, $01A0, $AAAA;
{$ENDC}
FUNCTION GetDataHandler(dataRef: Handle; dataHandlerSubType: OSType; flags: LONGINT): Component;
{$IFC NOT GENERATINGCFM}
INLINE $303C, $01ED, $AAAA;
{$ENDC}
{
************************
* Media Sample Table Routines
*************************
}
FUNCTION GetMediaSampleDescriptionCount(theMedia: Media): LONGINT;
FUNCTION AddMediaSampleReference(theMedia: Media; dataOffset: LONGINT; size: LONGINT; durationPerSample: TimeValue; sampleDescriptionH: SampleDescriptionHandle; numberOfSamples: LONGINT; sampleFlags: INTEGER; VAR sampleTime: TimeValue): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $707D, $AAAA;
{$ENDC}
FUNCTION AddMediaSampleReferences(theMedia: Media; sampleDescriptionH: SampleDescriptionHandle; numberOfSamples: LONGINT; sampleRefs: SampleReferencePtr; VAR sampleTime: TimeValue): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $303C, $01F7, $AAAA;
{$ENDC}
FUNCTION GetMediaSample(theMedia: Media; dataOut: Handle; maxSizeToGrow: LONGINT; VAR size: LONGINT; time: TimeValue; VAR sampleTime: TimeValue; VAR durationPerSample: TimeValue; sampleDescriptionH: SampleDescriptionHandle; VAR sampleDescriptionIndex: LONGINT; maxNumberOfSamples: LONGINT; VAR numberOfSamples: LONGINT; VAR sampleFlags: INTEGER): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $707E, $AAAA;
{$ENDC}
FUNCTION GetMediaSampleReference(theMedia: Media; VAR dataOffset: LONGINT; VAR size: LONGINT; time: TimeValue; VAR sampleTime: TimeValue; VAR durationPerSample: TimeValue; sampleDescriptionH: SampleDescriptionHandle; VAR sampleDescriptionIndex: LONGINT; maxNumberOfSamples: LONGINT; VAR numberOfSamples: LONGINT; VAR sampleFlags: INTEGER): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $707F, $AAAA;
{$ENDC}
FUNCTION GetMediaSampleReferences(theMedia: Media; time: TimeValue; VAR sampleTime: TimeValue; sampleDescriptionH: SampleDescriptionHandle; VAR sampleDescriptionIndex: LONGINT; maxNumberOfEntries: LONGINT; VAR actualNumberofEntries: LONGINT; sampleRefs: SampleReferencePtr): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $303C, $0235, $AAAA;
{$ENDC}
FUNCTION SetMediaPreferredChunkSize(theMedia: Media; maxChunkSize: LONGINT): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $303C, $01F8, $AAAA;
{$ENDC}
FUNCTION GetMediaPreferredChunkSize(theMedia: Media; VAR maxChunkSize: LONGINT): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $303C, $01F9, $AAAA;
{$ENDC}
FUNCTION SetMediaShadowSync(theMedia: Media; frameDiffSampleNum: LONGINT; syncSampleNum: LONGINT): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $303C, $0121, $AAAA;
{$ENDC}
FUNCTION GetMediaShadowSync(theMedia: Media; frameDiffSampleNum: LONGINT; VAR syncSampleNum: LONGINT): OSErr;
FUNCTION HitTestSpriteMedia(mh: MediaHandler; flags: LONGINT; loc: Point; VAR spriteHitIndex: INTEGER): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $000C, $0103, $7000, $A82A;
{$ENDC}
FUNCTION CountSpriteMediaSprites(mh: MediaHandler; VAR numSprites: INTEGER): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0004, $0104, $7000, $A82A;
{$ENDC}
FUNCTION CountSpriteMediaImages(mh: MediaHandler; VAR numImages: INTEGER): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0004, $0105, $7000, $A82A;
{$ENDC}
FUNCTION GetSpriteMediaIndImageDescription(mh: MediaHandler; imageIndex: INTEGER; imageDescription: ImageDescriptionHandle): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0006, $0106, $7000, $A82A;
{$ENDC}
FUNCTION GetDisplayedSampleNumber(mh: MediaHandler; VAR sampleNum: LONGINT): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0007, $0107, $7000, $A82A;
{$ENDC}
{
************************
* Text Media routines
*************************
}
{ Return displayFlags for TextProc }
CONST
txtProcDefaultDisplay = 0; { Use the media's default }
txtProcDontDisplay = 1; { Don't display the text }
txtProcDoDisplay = 2; { Do display the text }
FUNCTION SetTextProc(mh: MediaHandler; TextProc: TextMediaUPP; refcon: LONGINT): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0008, $0101, $7000, $A82A;
{$ENDC}
FUNCTION AddTextSample(mh: MediaHandler; text: Ptr; size: LONGINT; fontNumber: INTEGER; fontSize: INTEGER; textFace: ByteParameter; VAR textColor: RGBColor; VAR backColor: RGBColor; textJustification: INTEGER; VAR textBox: Rect; displayFlags: LONGINT; scrollDelay: TimeValue; hiliteStart: INTEGER; hiliteEnd: INTEGER; VAR rgbHiliteColor: RGBColor; duration: TimeValue; VAR sampleTime: TimeValue): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0034, $0102, $7000, $A82A;
{$ENDC}
FUNCTION AddTESample(mh: MediaHandler; hTE: TEHandle; VAR backColor: RGBColor; textJustification: INTEGER; VAR textBox: Rect; displayFlags: LONGINT; scrollDelay: TimeValue; hiliteStart: INTEGER; hiliteEnd: INTEGER; VAR rgbHiliteColor: RGBColor; duration: TimeValue; VAR sampleTime: TimeValue): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0026, $0103, $7000, $A82A;
{$ENDC}
FUNCTION AddHiliteSample(mh: MediaHandler; hiliteStart: INTEGER; hiliteEnd: INTEGER; VAR rgbHiliteColor: RGBColor; duration: TimeValue; VAR sampleTime: TimeValue): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0010, $0104, $7000, $A82A;
{$ENDC}
CONST
findTextEdgeOK = $01; { Okay to find text at specified sample time }
findTextCaseSensitive = $02; { Case sensitive search }
findTextReverseSearch = $04; { Search from sampleTime backwards }
findTextWrapAround = $08; { Wrap search when beginning or end of movie is hit }
findTextUseOffset = $10; { Begin search at the given character offset into sample rather than edge }
FUNCTION FindNextText(mh: MediaHandler; text: Ptr; size: LONGINT; findFlags: INTEGER; startTime: TimeValue; VAR foundTime: TimeValue; VAR foundDuration: TimeValue; VAR offset: LONGINT): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $001A, $0105, $7000, $A82A;
{$ENDC}
FUNCTION HiliteTextSample(mh: MediaHandler; sampleTime: TimeValue; hiliteStart: INTEGER; hiliteEnd: INTEGER; VAR rgbHiliteColor: RGBColor): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $000C, $0106, $7000, $A82A;
{$ENDC}
CONST
dropShadowOffsetType = 'drpo';
dropShadowTranslucencyType = 'drpt';
FUNCTION SetTextSampleData(mh: MediaHandler; data: UNIV Ptr; dataType: OSType): ComponentResult;
{$IFC NOT GENERATINGCFM}
INLINE $2F3C, $0008, $0107, $7000, $A82A;
{$ENDC}
FUNCTION MovieSearchText(theMovie: Movie; text: Ptr; size: LONGINT; searchFlags: LONGINT; VAR searchTrack: Track; VAR searchTime: TimeValue; VAR searchOffset: LONGINT): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $303C, $0207, $AAAA;
{$ENDC}
PROCEDURE GetPosterBox(theMovie: Movie; VAR boxRect: Rect);
PROCEDURE GetTrackLoadSettings(theTrack: Track; VAR preloadTime: TimeValue; VAR preloadDuration: TimeValue; VAR preloadFlags: LONGINT; VAR defaultHints: LONGINT);
{$IFC NOT GENERATINGCFM}
INLINE $303C, $01E4, $AAAA;
{$ENDC}
{
****
Big screen TV
****
}
CONST
fullScreenHideCursor = $00000001;
fullScreenAllowEvents = $00000002;
fullScreenDontChangeMenuBar = $00000004;
fullScreenPreflightSize = $00000008;
FUNCTION BeginFullScreen(VAR restoreState: Ptr; whichGD: GDHandle; VAR desiredWidth: INTEGER; VAR desiredHeight: INTEGER; VAR newWindow: WindowPtr; VAR eraseColor: RGBColor; flags: LONGINT): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $303C, $0233, $AAAA;
{$ENDC}
FUNCTION EndFullScreen(fullState: Ptr; flags: LONGINT): OSErr;
{$IFC NOT GENERATINGCFM}
INLINE $303C, $0234, $AAAA;
{$ENDC}
{
****
Sprite Toolbox
****
}
CONST
kBackgroundSpriteLayerNum = 32767;
{ Sprite Properties }
kSpritePropertyMatrix = 1;
kSpritePropertyImageDescription = 2;
kSpritePropertyImageDataPtr = 3;
kSpritePropertyVisible = 4;
kSpritePropertyLayer = 5;
kSpritePropertyImageIndex = 100;
kSpriteTrackPropertyBackgroundColor = 101;
kSpriteTrackPropertyOffscreenBitDepth = 102;
kSpriteTrackPropertySampleFormat = 103;
{ flagsIn for SpriteWorldIdle }
kOnlyDrawToSpriteWorld = $00000001;
{ flagsOut for SpriteWorldIdle }
kSpriteWorldDidDraw = $00000001;
{ flags for sprite track sample format }
kKeyFrameAndSingleOverride = $00000002;
kKeyFrameAndAllOverrides = $00000004;
FUNCTION NewSpriteWorld(VAR newSpriteWorld: SpriteWorld; destination: GWorldPtr; spriteLayer: GWorldPtr; VAR backgroundColor: RGBColor; background: GWorldPtr): OSErr;